<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

//Route::redirect('/','/admin');
Route::get('/show', function () {
    return view('show');
});

//创建es索引
Route::get('es/createindex',[\App\Http\Controllers\ElasticSearch::class,'createindex']);
//创建索引数据
Route::post('es/save',[\App\Http\Controllers\ElasticSearch::class,'save']);
//搜索
Route::get('es/search',[\App\Http\Controllers\ElasticSearch::class,'search']);

Route::get('phpinfo',[\App\Http\Controllers\PhpinfoController::class,'phpinfo']);
//adddata
Route::get('adddata',[\App\Http\Controllers\PhpinfoController::class,'adddata']);
//mongoList
Route::get('mongolist',[\App\Http\Controllers\PhpinfoController::class,'mongoList']);
//mongoAdd
Route::get('mongoadd',[\App\Http\Controllers\PhpinfoController::class,'mongoAdd']);
//mongoEdit
Route::get('mongoedit',[\App\Http\Controllers\PhpinfoController::class,'mongoEdit']);
//mongoDel
Route::get('mongodel',[\App\Http\Controllers\PhpinfoController::class,'mongoDel']);
//demo
Route::get('demo',[\App\Http\Controllers\PhpinfoController::class,'demo']);





//实现两地距离
Route::get('geo',[\App\Http\Controllers\RedisGeoController::class,'ageGeo']);


















